import Vue from 'vue'
import VueRouter, { RouteConfig } from 'vue-router'
import home from '../views/Home.vue'
import login from '../views/login.vue'
import appointment from '../views/appointment.vue'
import photograph from '../views/photograph.vue'
import my from '../views/my.vue'

Vue.use(VueRouter)

const routes: Array<RouteConfig> = [
  {
    path: '/',
    name: 'home',
    component: home
  },
  {
    path: '/home',
    name: 'home',
    component: home
  },
  {
    path: '/my',
    name: 'my',
    component: my
  },
  {
    path: '/appointment',
    name: 'appointment',
    component: appointment
  },
  {
    path: '/login',
    name: 'login',
    component: login
  },
  {
    path: '/photograph',
    name: 'photograph',
    component: photograph
  }
]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
